//
//  IRead.h
//  FoxitApp
//
//  Created by sijia_liu on 15/4/27.
//
//

@class OFDViewCtrl;

@protocol IDmUndoItem <NSObject>

-(NSString*)getDescription;
-(BOOL)undo;
-(BOOL)redo;
-(BOOL)redoForOOM;

@end

@protocol IUndoEventListener <NSObject>

- (void)itemWillAdd:(OFDViewCtrl*)pdfViewCtrl item:(id<IDmUndoItem>)item;
- (void)itemAdded:(OFDViewCtrl*)pdfViewCtrl item:(id<IDmUndoItem>)item;
- (void)willUndo:(OFDViewCtrl*)pdfViewCtrl item:(id<IDmUndoItem>)item;
- (void)undoFinished:(OFDViewCtrl*)pdfViewCtrl item:(id<IDmUndoItem>)item;
- (void)willRedo:(OFDViewCtrl*)pdfViewCtrl item:(id<IDmUndoItem>)item;
- (void)redoFinished:(OFDViewCtrl*)pdfViewCtrl item:(id<IDmUndoItem>)item;
- (void)willClearUndo:(OFDViewCtrl*)pdfViewCtrl;
- (void)clearUndoFinished:(OFDViewCtrl*)pdfViewCtrl;

@end
